const TokenKey = 'vue_admin_template_token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}
export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getMenus() {
  return localStorage.getItem('menus_token')
}
export function setMenus(menus) {
  return localStorage.setItem('menus_token', JSON.stringify(menus))
}
export function removeMenus() {
  return localStorage.removeItem('menus_token')
}
